package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.MqqueueMapper;
import com.cn.jdia.dc.model.Mqqueue;
import com.cn.jdia.dc.service.IMqqueueService;

@Service("mqqueueService")
public class IMqqueueServiceImpl implements IMqqueueService{

	@Resource
	private MqqueueMapper mapper;
	
	@Override
	public List<Mqqueue> getQueueDataByPro(String sname, String ip) {
		return this.mapper.selectByPro(sname, ip);
	}

	@Override
	public List<String> getPendingServer() {
		// TODO Auto-generated method stub
		return this.mapper.selectPendingServers();
	}

}
